import styled from 'styled-components'

export const TopListWrap = styled.div `
  width: 230px;
  height: 472px;
  margin-top: 20px;

  .header{
    display: flex;
    position: relative;
    margin-top: 20px;
    margin-left: 20px;

    .header-left .mask{
      position: absolute;
      width: 80px;
      height: 80px;
      background-position: -145px -57px;
      top: 0;
      left : 0;
      text-indent: -9999px;
    }

    .header-right{
      margin: 6px 0 0 10px;
      .title{
        h3{
          color: #333333;
          font-size: 14px;
        }
      }
    }
    .control{
      margin-top: 10px;
      span{
        display: inline-block;
        width: 22px;
        height: 22px;
        cursor: pointer;
      }
      .player{
        background-position: -267px -205px;
        margin-right: 10px;
      }
      .player:hover{
        background-position: -267px -235px;
      }
      .store{
        background-position: -300px -205px;
      }
      .store:hover{
        background-position: -300px -235px;
      }
    }
  }

  .list{
    margin-top: 20px;
    margin-left: 25px;
    .list-item-left{
      display: flex;
    }

    .list-item:nth-child(-n+3){
      .rank-number{
        color: #c10d0c;
      }
    }
  
    .list-item{
      font-size: 16px;
      height: 32px;
      line-height:32px;
      display: flex;

     
      .rank-number{
        display: block;
        width: 35px;
        height: 32px;
        text-align: center;
        color: #666666;
      }

      .title{
        display: block;
        width: 170px;
        height: 32px;
        font-size: 12px;
        margin-left: 7px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
    }
  .list-item:hover .title{
    width: 100px;
  }
  .list-item:hover .list-item-right{
    visibility: visible;
  }

    .list-item-right{
      margin-left: -6px;
      margin-right: 100px;
      visibility: hidden;
      display: flex;
      align-items: center;
      span{
        margin-right: 10px;
        display: block;
        width: 17px;
        height: 17px;
        cursor: pointer;
      }
      .player{
        background-position: -267px -268px;
      }
      .player:hover{
        background-position: -267px -288px;
      }
      .add{
        background-position: 0 -700px;
        margin-right: 6px;
        margin-top: 4px;
      }
      .add:hover{
        background-position: -22px -700px;
      }
      .store{
        background-position: -297px -268px;
      }
      .store:hover{
        background-position: -297px -288px;
      }
    }
  }

  .more{
    line-height:32px;
    float: right;
    padding-right: 24px;
  }

`